﻿@model ISSMoviePlex.DAL.Models.RegisterModel
@{
    ViewBag.Title = "Register";
}
<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
    <h2>
        Create a new account.</h2>
</hgroup>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()
    <br />

    <fieldset>
        <legend>Registration Form</legend>
        <br />

        <div>
            @Html.LabelFor(m => m.UserName)
        </div>
        <div>
            @Html.TextBoxFor(m => m.UserName)
        </div>
        <br />

        <div>
            @Html.LabelFor(m => m.Password)
        </div>
        <div>
            @Html.PasswordFor(m => m.Password)
        </div>
        <br />

        <div>
            @Html.LabelFor(m => m.ConfirmPassword)
        </div>
        <div>
            @Html.PasswordFor(m => m.ConfirmPassword)
        </div>
        <br />

        <div>
            @Html.LabelFor(m => m.Member.MemberName)
        </div>
        <div>
            @Html.TextBoxFor(m => m.Member.MemberName)
        </div>
        <br />

        <div>
            @Html.LabelFor(m => m.Member.DateOfBirth)
        </div>
        <div>
            @Html.TextBoxFor(m => m.Member.DateOfBirth)
        </div>
        <br />

        <div>
            @Html.LabelFor(m => m.Member.Email)
        </div>
        <div>
            @Html.TextBoxFor(m => m.Member.Email)
        </div>
        <br />

        <div>
            @Html.LabelFor(m => m.Member.Address)
        </div>
        <div>
            @Html.TextBoxFor(m => m.Member.Address)
        </div>
        <br />

        <input type="submit" value="Register" />
    </fieldset>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
